From 5e71f1845a7d1ae001759b07d9dc0cbde3d2235a Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Fri, 6 Jun 2014 12:51:45 +0000 Subject: [PATCH] fix mistranslation of case_ignore_strncmp. --- gpsbabel/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index 8da17370c..9fec3d278 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -945,7 +945,7 @@ case_ignore_strcmp(const QString& s1, const QString& s2) { } // In 95% of the callers, this could be s1.startsWith(s2)... inline int case_ignore_strncmp(const QString& s1, const QString& s2, int n) { - return s1.left(n).compare(s2, Qt::CaseInsensitive); + return s1.left(n).compare(s2.left(n), Qt::CaseInsensitive); } int str_match(const char* str, const char* match); -- 2.30.2